import { D as i } from "./index.DRP9uTUm.js";
import { p as m } from "./index.Bbfhrq76.js";
import { g as o } from "./vendor.CF2kwqqq.js";
let l = [
  {
    parameter: "warehouse-type",
    message: "请选择数据输入"
  },
  {
    parameter: "Table Name",
    message: "请选择表"
  }
];
const q = () => {
  let r = "", s = "", p = "", u = null;
  return { name: "org.apache.nifi.processors.standard.QueryWarehouseTableRecord", excludeKeys: [
    "Database Connection Pooling Service",
    "qdbtr-record-writer",
    "db-fetch-db-type",
    "Table Name",
    "warehouse-type",
    "db-fetch-sql-query",
    "Columns to Return",
    "Fetch Size",
    "Max Wait Time",
    "db-fetch-where-clause",
    "dbf-default-precision",
    "dbf-default-scale",
    "dbf-user-logical-types",
    "qdbt-max-frags",
    "qdbt-max-rows",
    "qdbt-output-batch-size",
    "qdbtr-normalize"
  ], selfFormColumn: [
    // {
    //   assignKey: "Database Connection Pooling Service",
    //   tag: AttrItem,
    //   ":data": "formData.config.properties",
    // },
    // {
    //   assignKey: "db-fetch-db-type",
    //   tag: AttrItem,
    //   ":data": "formData.config.properties",
    // },
    // {
    //   assignKey: "qdbtr-record-writer",
    //   tag: AttrItem,
    //   ":data": "formData.config.properties",
    // },
    {
      tag: i,
      ":formdata": "formData",
      setup({ params: e }) {
        return {
          inputV: r,
          inputV2: s,
          inputV3: p,
          step: e.step.value,
          api: u
        };
      },
      ":inputV": "inputV",
      ":inputV2": "inputV2",
      ":inputV3": "inputV3",
      ":step": "step",
      ":api": "api"
    }
  ], hooksOpen: (e, a) => {
    u = a.api;
    let t = a.event.source.get(e.id).component;
    r = o(t, 'config.properties["warehouse-type"]') ?? "", s = o(t, 'config.properties["Table Name"]') ?? "", p = o(t, 'config.properties["db-fetch-sql-query"]') ?? "";
  }, hooksSubmit: (e, a) => {
    var n;
    let t = (n = a.event.form) == null ? void 0 : n.data.value[e.id].config.properties;
    m(t, l);
  } };
};
export {
  q as default
};
